package operation.impl;

import book.BookList;
import operation.IOperation;

public class FindOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("您现在经行的是书籍查找操作~");
        System.out.println("请输入您要查找的书名->");
        String booksName = scanner.next();
        if(bookList.isContains(booksName)){
            System.out.println("书架有该书目！");
        }else {
            System.err.println("书架没有该书~~");
        }
    }
}
